import axios from "axios";
import { mock } from "mockjs";

const mockIns = axios.create({
    baseURL:"/mock",
    timeout:2000
})

mockIns.interceptors.request.use(function(config){
    return config
})

mockIns.interceptors.response.use(function(res){
    return res.data
},function(err){
    return Promise.reject(err)
})

export default mockIns